{% extends "home/home.html" %}
{% load i18n %}

{% block head_title%}Register{% endblock %}

{% block content %}
<h1>Registrar Cuenta</h1>
    <form enctype="multipart/form-data" method="POST" action="">{% csrf_token %}
    <h2>Sus Datos de Login</h2>
      
        <div class="content">
          <table class="form">
              <tbody>
                <tr>
                  <td><span class="required">*</span> Nombre de usuario:</td>
                  <td>{{ form.username }}<span class="helptext">  Requerido. 30 caracteres o menos. Letras, dígitos y @/./+/-/_ solamente.</span></td>
               	  <td><label class="error"> {{ form.username.errors }}</label> </td>
               	 </tr>
               	 
                <tr>
                  <td><span class="required">*</span> Contraseña:</td>
                  <td>{{ form.password1 }}</td>
                </tr>
                
                <tr>
                  <td><span class="required">*</span> Contraseña (confirmación):</td>
                  <td>{{ form.password2 }}</td>
                  <td>{{ form.password2.errors }} </td>
                </tr>
               </tbody>              
          </table>
        </div>    
     <h2>Sus Datos Personales</h2>
        <div class="content">
          <table class="form">
              <tbody>
                <tr>
                  <td><span class="required">*</span> Nombre:</td>
                  <td>{{ form.first_name }}</td>
                  <td>  {{ form.first_name.errors }}
                </tr>
                                
                <tr>
                  <td><span class="required">*</span> Apellidos:</td>
                  <td>{{ form.last_name }}</td>
                  <td> {{ form.last_name.errors }} </td>
                </tr>
                
                <tr>
                  <td><span class="required">*</span> E-Mail:</td>
                  <td>{{ form.email }}</td>
                  <td><label class="error"> {{ form.email.errors }}</label></td> 
                </tr>
                                             
                <tr>
                  <td><span class="required">*</span> Dirección:</td>
                  <td>{{ form.address }}</td>
                   <td> {{ form.address.errors }} </td>
                </tr>
                
                <tr>
                  <td><span class="required">*</span> Dirección de Envío:</td>
                  <td>{{ form.addressSend }}</td>
                  <td>  {{ form.addressSend.errors }} </td>
                </tr>
                
                <tr>
                  <td><span class="required">*</span> Teléfono:</td>
                  <td>{{ form.telephone }}</td>
                  <td>  {{ form.telephone.errors }} </td>
                </tr>
                <tr>
                  <td><span class="required"></span> Teléfono Móvil:</td>
                  <td>{{ form.mobilePhone }}</td>
                   <td> {{ form.mobilePhone.errors }} </td>
                </tr> 
                                             
              </tbody>              
          </table>            
        </div> 
        <input type="submit" class="button" value="Registrarse">
        <br>
        <br>
    </form>        
{% endblock %}